﻿
using System;
using System.Collections.Generic;
using System.Text;

namespace QuanLyThuVien.DTO
{
    class SachDTO
    {
        private String maSach;

        public String MaSach
        {
            get { return maSach; }
            set { maSach = value; }
        }

        private String tenSach;

        public String TenSach
        {
            get { return tenSach; }
            set { tenSach = value; }
        }

        private String tacGia;

        public String TacGia
        {
            get { return tacGia; }
            set { tacGia = value; }
        }

        private String namXuatBan;

        public String NamXuatBan
        {
            get { return namXuatBan; }
            set { namXuatBan = value; }
        }

        private String nhaXuatBan;

        public String NhaXuatBan
        {
            get { return nhaXuatBan; }
            set { nhaXuatBan = value; }
        }

        private Double triGia;

        public Double TriGia
        {
            get { return triGia; }
            set { triGia = value; }
        }

        private NhanVienDTO nhanVien;

        internal NhanVienDTO NhanVien
        {
            get { return nhanVien; }
            set { nhanVien = value; }
        }

        private TheLoaiSachDTO theLoai;

        internal TheLoaiSachDTO TheLoai
        {
            get { return theLoai; }
            set { theLoai = value; }
        }

        private String tinhTrangSach;

        public String TinhTrangSach
        {
            get { return tinhTrangSach; }
            set { tinhTrangSach = value; }
        }

        private int xoa;

        public int Xoa
        {
            get { return xoa; }
            set { xoa = value; }
        }

        public SachDTO()
        {
            this.MaSach = "";
            this.TenSach = "";
            this.TacGia = "";
            this.NamXuatBan = "";
            this.NhaXuatBan = "";
            this.TriGia = 0;
            this.NhanVien = null;
            this.TheLoai = null;
            this.TinhTrangSach = "Rảnh";
            this.Xoa = 0;
        }
    }
}
